package cn.itcast.mapper;

import cn.itcast.pojo.packageOrder;
import cn.itcast.pojo.packageOrderExample;

import java.util.HashMap;
import java.util.List;

import cn.itcast.pojo.packageOrderItem;
import org.apache.ibatis.annotations.Param;

public interface packageOrderMapper {
    int countByExample(packageOrderExample example);

    int deleteByExample(packageOrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(packageOrder record);

    int insertSelective(packageOrder record);

    List<packageOrder> selectByExample(packageOrderExample example);

    List<packageOrder> selectMerchantFiftyData(@Param("orderStatus")String orderStatus, @Param("merchantPhone")String merchantPhone);

    packageOrder selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") packageOrder record, @Param("example") packageOrderExample example);

    int updateByExample(@Param("record") packageOrder record, @Param("example") packageOrderExample example);

    int updateByPrimaryKeySelective(packageOrder record);

    int updateByPrimaryKey(packageOrder record);

    /**
     * 获取所有的打包订单
     * @param parameterMap
     * @return
     */
    List<packageOrder> getAllPackageOrder(HashMap<String, Object> parameterMap);


    /**
     *
     * @Description: 获取骑手出售金额
     *
     * @auther: 张松
     * @date: 15:02 2021/4/20
     * @param: [horsemanOpenId]
     * @return: java.util.List<cn.itcast.pojo.packageOrder>
     *
     */
    List<packageOrder> selectHorsemanSaleMoney(String horsemanOpenId);
}